package com.lesent.kafka.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

/**
 * @author shengtao
 * @Description:
 * @date 2018/12/26 14:44
 */
public class KafkaNode {

    private String host;

    private int port;

    private int version;

    @JSONField(name = "jmx_port")
    private int jmxPort;

    private List<String> endpoints;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getJmxPort() {
        return jmxPort;
    }

    public void setJmxPort(int jmxPort) {
        this.jmxPort = jmxPort;
    }

    public List<String> getEndpoints() {
        return endpoints;
    }

    public void setEndpoints(List<String> endpoints) {
        this.endpoints = endpoints;
    }

    @Override
    public String toString() {
        return "KafkaNode{" +
                "host='" + host + '\'' +
                ", port=" + port +
                ", version=" + version +
                ", jmxPort=" + jmxPort +
                ", endpoints=" + endpoints +
                '}';
    }
}
